CC=aarch64-linux-gcc
#CFLAGS_=-I /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/
#CFLAGS_ += -I /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/include/libdrm/
#LDFLAGS_=-L /opt/poky-atmel/2.4.2/sysroots/cortexa5hf-vfp-poky-linux-gnueabi/usr/lib/

CFLAGS_=-I /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/include/
CFLAGS_ += -I /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/include/libdrm/
LDFLAGS_=-L /home/cambricon/work/DRM-Test/libdrm-2.4.115/install/lib


FLAGS=-ldrm
all:
#	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-single-buffer.c -o modeset
	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-double-buffer.c -o modeset-double-buffer
#	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-plane-test.c -o modeset-plane-test
	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  plane-test.c -o plane-test
	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-page-flip.c -o modeset-page-flip
#	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-atomic-crtc.c -o modeset-atomic-crtc
#	$(CC) $(CFLAGS_) $(LDFLAGS_) $(FLAGS)  modeset-atomic-plane.c -o modeset-atomic-plane

.PHONY: clean
clean:
	rm -f *.o modeset-page-flip plane-test modeset-double-buffer modeset-single-buffer modeset-atomic-plane modeset-atomic-crtc
